//
//  NSString+GG.m
//  unzip
//
//  Created by yg on 2021/11/24.
//

#import "NSString+GG.h"

@implementation NSString (GG)

- (BOOL)gg_isInteger{
	if (self.length == 0) {
		return NO;
	}
	NSString *regex = @"[0-9]*";
	NSPredicate *pred = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",regex];
	if ([pred evaluateWithObject:self]) {
		return YES;
	}
	return NO;
}

@end
